Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
admin
/
app
/
V2
/
Services
/
Filename :
GoalService.php
back
Copy
<?php namespace App\V2\Services; use App\V2\Repositories\GoalRepository; class GoalService extends BaseService { private $goalRepository; public function __construct(){ $this->goalRepository = new GoalRepository(); } public function getAllGoals(){ return $this->goalRepository->getAllGoals(); } public function getDefaultGoal(){ // return $this->goalRepository->getByName('Household'); return $this->goalRepository->getLastCreatedGoal(); } } ?>